<template>
  <div class="child">
   
    <div class="share-btn" @click="changeMsg">改变msg值</div>
  </div>
</template>

<script>

export default {
  name: 'child',
  
  props: {
    oneprop: {
      type: String,
      default: 'Hello World~'
    }
  },
  methods: {
    changeMsg () {
      console.log('44444444444')
      this.$emit('update:msg', 'Hello xiaomei')
    }
  }
}
</script>
